﻿using AutoMapper;
using B.S.Traceable.Domain.Entitiy;
using B.S.Traceable.ErrorCode;
using B.S.Traceable.Infrasturcture.Interfaces;
using B.S.Traceable.Read.Api.Application.Command.Farming;
using MediatR;

namespace B.S.Traceable.Read.Api.Application.CommandHandler.Farming
{
    //public class GetFarmingHandler : IRequestHandler<GetFarmingCommand, ApiResult<List<FarmingInformation>>>
    //{

    //    private readonly IBaseRepository<FarmingInformation> farRepo;
    //    private readonly IMapper mapper;

    //    public GetFarmingHandler(IBaseRepository<FarmingInformation> farRepo, IMapper mapper)
    //    {
    //        this.farRepo = farRepo;
    //        this.mapper = mapper;
    //    }

    //    public Task<ApiResult<List<FarmingInformation>>> Handle(GetFarmingCommand request, CancellationToken cancellationToken)
    //    {
    //        ApiResult<List<FarmingInformation>> result=new ApiResult<List<FarmingInformation>>();

    //    }
    //}
}
